import { EventTarget } from 'cc';
const eventTarget = new EventTarget;
export class EventDispatcher {
    private static inst:EventDispatcher;
    public static UPDATE_BLOCK_SIZE = "update_block_size";
    public static SHOW_TIPS = "show_tips";
    public static GAME_OVER = "game_over";
    public static REVIVE_GAME = 'revive_game';
    static getInstTarget() {
        if(!EventDispatcher.inst){
            EventDispatcher.inst = new EventDispatcher();
        }
        return EventDispatcher.inst.getTarget();
    }
    getTarget():EventTarget {
        return eventTarget;
    }
}


